package com.ml.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import com.ml.ws.handler.WebSocketClient;
import com.virgil.redis.util.RedisUtil;

import lombok.extern.slf4j.Slf4j;

@Component
@Slf4j
public class Startlisten implements ApplicationRunner {

    @Autowired
    WebSocketClient client;
    @Autowired
    RedisUtil redisUtil;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        // 开启Ws服务
        client.start(8111);

        // 初始化数据到缓存
        // TODO 交易对配置信息

        //
    }


}
